<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<c:set var="index" value="/agent/relation.html"></c:set>
<div class="navbar navbar-default" id="navbar">
			<script type="text/javascript">
				try{ace.settings.check('navbar' , 'fixed')}catch(e){}
			</script>

			<div class="navbar-container" id="navbar-container">
				<div class="navbar-header pull-left">
					<a href="#" class="navbar-brand">
						<small>
							<i class="icon-leaf"></i>
							悦享金服后台
						</small>
					</a>
				</div>

				<div class="navbar-header pull-left" role="navigation">
					<ul class="nav ace-nav">
						<li class="light-blue">
							<a data-toggle="dropdown" href="#" class="dropdown-toggle">
								<span class="user-info">
									<span>欢迎你,</span>
									<span>${session_operator.userName}</span>
								</span>

								<i class="icon-caret-down"></i>
							</a>

							<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
								<li>
									<a href="#">
										<i class="icon-cog"></i>
										设置
									</a>
								</li>

								<li>
									<a href="#">
										<i class="icon-user"></i>
										个人资料
									</a>
								</li>

								<li class="divider"></li>

								<li>
									<a href="/logout.html">
										<i class="icon-off"></i>
										退出
									</a>
								</li>
							</ul>
						</li>
					</ul>
				</div>
			</div>
		</div>

		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<div class="main-container-inner">
				<a class="menu-toggler" id="menu-toggler" href="#">
					<span class="menu-text"></span>
				</a>

				<div class="sidebar" id="sidebar">
					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
					</script>

					<ul class="nav nav-list">
					<!--S 用户管理 -->
						<li  class="active open">
							<a href="#" class="dropdown-toggle">
								<i class="icon-list"></i>
								<span class="menu-text"> 用户管理 </span>
								<b class="arrow icon-angle-down"></b>
							</a>

							<ul class="submenu">
								<li class="<c:if test='${nid eq "relation" }'>active</c:if>">
									<a href="/system/operator.html">
										<i class="icon-double-angle-right"></i>
										操作员管理
									</a>
								</li>
								<li class="<c:if test='${nid eq "rank" }'>active</c:if>">
									<a href="/system/role.html">
										<i class="icon-double-angle-right"></i>
										角色管理
									</a>
								</li>
								<li class="<c:if test='${nid eq "info" }'>active</c:if>">
									<a href="/system/menu.html">
										<i class="icon-double-angle-right"></i>
										菜单管理
									</a>
								</li>
							</ul>
						</li>
					<!--E 用户管理 -->
					<!--S 经纪人系统 -->
						<li class="<c:if test='${fn:contains(nid,"agent") }'>open</c:if>">
							<a href="#" class="dropdown-toggle">
								<i class="icon-list"></i>
								<span class="menu-text"> 经纪人系统 </span>
								<b class="arrow icon-angle-down"></b>
							</a>

							<ul class="submenu" style="<c:if test='${fn:contains(nid,"agent") }'>display:block;</c:if>">
								<li class="<c:if test='${fn:contains(nid,"relation") }'>active</c:if>">
									<a href="/agent/relation.html">
										<i class="icon-double-angle-right"></i>
										建立关联
									</a>
								</li>
								<li class="<c:if test='${fn:contains(nid,"rank") }'>active</c:if>">
									<a href="/agent/rank.html">
										<i class="icon-double-angle-right"></i>
										推广奖励资金设置
									</a>
								</li>
								<li class="<c:if test='${fn:contains(nid,"info") }'>active</c:if>">
									<a href="/agent/info.html">
										<i class="icon-double-angle-right"></i>
										推广统计
									</a>
								</li>
								<li class="<c:if test='${fn:contains(nid,"record") }'>active</c:if>">
									<a href="/agent/record.html">
										<i class="icon-double-angle-right"></i>
										推广记录管理
									</a>
								</li>
							</ul>
						</li>
				<!--E 经纪人系统 -->
						
				<!--S CRM系统 -->
						<li   class="<c:if test='${fn:contains(nid,"crm") }'>open</c:if>">
							<a href="#" class="dropdown-toggle">
								<i class="icon-list"></i>
								CRM系统
								<b class="arrow icon-angle-down"></b>
							</a>
						<!-- S 潜在客户开发 -->
							<ul class="submenu"  style="<c:if test='${fn:contains(nid,"crm") }'>display:block;</c:if>">
								<li   class="<c:if test='${fn:contains(nid,"latent") }'>open</c:if>">
									<a href="" class="dropdown-toggle">
										<i class="icon-lock"></i>
										潜在客户开发
										<b class="arrow icon-angle-down"></b>
									</a>
									<ul class="submenu" style="<c:if test='${fn:contains(nid,"latent") }'>display:block;</c:if>">
										<li class="<c:if test='${fn:contains(nid,"potential") }'>active</c:if>">
											<a href="/crm/potential.html">
												<i class="icon-double-angle-right"></i>
												添加潜在客户 
											</a>
										</li>
										
										<li class="<c:if test='${fn:contains(nid,"development") }'>active</c:if>">
											<a href="/crm/development.html">
												<i class="icon-double-angle-right"></i>
												客户开发计划
											</a>
										</li>
									</ul>
								</li>
							<!-- E 潜在客户开发 -->
								
							<!-- S 有效客户管理 -->
								<li  class="<c:if test='${fn:contains(nid,"effective")}'>open</c:if>">
									<a href="#" class="dropdown-toggle">
										<i class="icon-lock"></i>
										有效客户管理
										<b class="arrow icon-angle-down"></b>
									</a>
									<ul class="submenu" style="<c:if test='${fn:contains(nid,"effective")}'>display:block;</c:if>">
										<li class="<c:if test='${fn:contains(nid,"valid") }'>active</c:if>">
											<a href="/crm/valid.html">
												<i class="icon-double-angle-right"></i>
												有效客户管理
											</a>
										</li>
										
										<li class="<c:if test='${fn:contains(nid,"lost") }'>active</c:if>">
											<a href="/crm/lost.html">
												<i class="icon-double-angle-right"></i>
												流失客户管理
											</a>
										</li>
									</ul>
								</li>
							<!-- E 有效客户管理 -->	
							
							<!-- S 客户服务管理 -->
								<li class="<c:if test='${fn:contains(nid,"serve") }'>open</c:if>">
									<a href="#" class="dropdown-toggle">
										<i class="icon-lock"></i>
										客户服务管理
										<b class="arrow icon-angle-down"></b>
									</a>
									<ul class="submenu" style="<c:if test='${fn:contains(nid,"serve")}'>display:block;</c:if>">
										<li class="<c:if test='${fn:contains(nid, "order") }'>active</c:if>">
											<a href="/crm/order.html">
												<i class="icon-double-angle-right"></i>
												客户服务单
											</a>
										</li>
									</ul>
								</li>
							<!-- E 客户服务管理 -->	
							
							<!-- S 短信营销管理 -->
								<li class="<c:if test='${fn:contains(nid,"notice") }'>open</c:if>">
									<a href="#" class="dropdown-toggle">
										<i class="icon-lock"></i>
										短信营销管理
										<b class="arrow icon-angle-down"></b>
									</a>
									<ul class="submenu" style="<c:if test='${fn:contains(nid,"notice") }'>display:block;</c:if>">
										<li class="<c:if test='${fn:contains(nid,"send") }'>active</c:if>">
											<a href="/crm/notice/send.html">
												<i class="icon-double-angle-right"></i>
												群发短信
											</a>
										</li>
										<li class="<c:if test='${fn:contains(nid,"template") }'>active</c:if>">
											<a href="/crm/notice/template.html">
												<i class="icon-double-angle-right"></i>
												短信模板
											</a>
										</li>
										<li class="<c:if test='${fn:contains(nid,"notices") }'>active</c:if>">
											<a href="/crm/notice.html">
												<i class="icon-double-angle-right"></i>
												短信记录
											</a>
										</li>
									</ul>
								</li>
							<!-- E 短信营销管理 -->	
							
							</ul>
						</li>
			<!--E CRM系统 -->
			
					</ul>

					<div class="sidebar-collapse" id="sidebar-collapse">
						<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
					</div>

					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
					</script>
				</div>

				

				
			</div><!-- /.main-container-inner -->

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="icon-double-angle-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->

		<script type="text/javascript">
			window.jQuery || document.write("<script src='/static/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
		</script>

		<!-- <![endif]-->

		<!--[if IE]>
			<script type="text/javascript">
			 window.jQuery || document.write("<script src='/static/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
			</script>
		<![endif]-->

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='/static/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script>
			$('.light-blue').click(function(){
				$(this).find('.dropdown-menu').toggle();
			});
		</script>

	</div>
